
<div class="clear"></div>
</div>
</div>
<script>

    (function ($) {
        $.fn.accordion = function (a) {
            var agm = {
                item: '.li',
                toggle: '.a',
                content: '.u'
            };

            var o = $.extend(agm, a);
            var _this = $(this);
            var item = _this.find(o.item);
            var toggle = _this.find(o.toggle);
            var content = _this.find(o.content);
            item.click(function () {
                toggle.removeClass("navbg");
                toggle.eq($(this).index()).toggleClass("navbg");
            });
            content.click(function (e) {
                e.stopPropagation();
            });
        }
    })(jQuery);

    $('.nav').accordion();
</script>
<block name="js"></block>
</body>
</html>